<!DOCTYPE html>
<script src="../../resources/js-test.js"></script>

<script>
onload = function()
{
    var f = document.createDocumentFragment();
    f.appendChild(document.createElement("div"));
    f.appendChild(document.createElement("div"));
    document.documentElement.remove();
    document.appendChild(f);
};
</script>

